/// code : 200
/// msg : "success"
/// data : {"token":"eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyaWQiOiIxMTcxODQ0IiwibG9naW5fdXNlcl9rZXkiOiI1ZWU3MzY1NC0xYTIwLTQxNDktOGQzNS05OTczMGVhOWMwYWYifQ.3O6Qy2mRh960_iZnOdZmoG8stHhBdpkpqHg4nIGoAg8YFcrqdxCJNnHaiHs-kdipJg-Dp8JjaEz_kdlCohVJDw","loginStatus":3,"userType":1}

class LoginBean {
  LoginBean({
    this.code,
    this.msg,
    this.data,
  });

  LoginBean.fromJson(dynamic json) {
    code = json['code'];
    msg = json['msg'];
    data = json['data'] != null ? LoginData.fromJson(json['data']) : null;
  }

  num? code;
  String? msg;
  LoginData? data;

  LoginBean copyWith({
    num? code,
    String? msg,
    LoginData? data,
  }) =>
      LoginBean(
        code: code ?? this.code,
        msg: msg ?? this.msg,
        data: data ?? this.data,
      );

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['code'] = code;
    map['msg'] = msg;
    if (data != null) {
      map['data'] = data?.toJson();
    }
    return map;
  }
}

/// token : "eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyaWQiOiIxMTcxODQ0IiwibG9naW5fdXNlcl9rZXkiOiI1ZWU3MzY1NC0xYTIwLTQxNDktOGQzNS05OTczMGVhOWMwYWYifQ.3O6Qy2mRh960_iZnOdZmoG8stHhBdpkpqHg4nIGoAg8YFcrqdxCJNnHaiHs-kdipJg-Dp8JjaEz_kdlCohVJDw"
/// loginStatus : 3
/// userType : 1

class LoginData {
  LoginData({
    this.token,
    this.loginStatus,
    this.userType,
  });

  LoginData.fromJson(dynamic json) {
    token = json['token'];
    loginStatus = json['loginStatus'];
    userType = json['userType'];
  }

  String? token;
  num? loginStatus;
  num? userType;

  LoginData copyWith({
    String? token,
    num? loginStatus,
    num? userType,
  }) =>
      LoginData(
        token: token ?? this.token,
        loginStatus: loginStatus ?? this.loginStatus,
        userType: userType ?? this.userType,
      );

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['token'] = token;
    map['loginStatus'] = loginStatus;
    map['userType'] = userType;
    return map;
  }
}
